﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AgentQltyView.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.SvrMgr.AgentQltyView" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>经销商查看品情单</title>
</head>
<body>
    <form id="form1" runat="server">
    <f:PageManager ID="PageManager1" AutoSizePanelID="AddAgentQltyPanel" runat="server" />
    <f:Panel runat="server" ID="AddAgentQltyPanel"  ShowBorder="false" ShowHeader="false" Layout="Absolute" AutoScroll="true" >
        <Toolbars>
            <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" >
                <Items>
                    <f:ToolbarFill runat="server"></f:ToolbarFill>
                    <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server" Text="关闭"></f:Button>                              
                    </Items>
                </f:Toolbar>
        </Toolbars>
        <Items>
            <f:Form ID="AddAgentQltyForm" ShowBorder="false" ShowHeader="false" runat="server"  BodyPadding="5px" BoxConfigChildMargin="5px" Title="SimpleForm" >               
                <Items>
                    <f:Panel runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="5px" Layout="HBox"  BoxConfigPosition="Right" >
                        <Items>
                            <f:TextBox runat="server" ID="ClaimsNumber" Label="品情号" Readonly="true" ></f:TextBox>
                            <f:DatePicker runat="server" ID="IssueDate" Label="发行日期"  Required="true" ShowRedStar="true"></f:DatePicker>
                        </Items>                    
                    </f:Panel>
                    <f:Panel runat="server" ID="pnlMacInfo"   Title="1.机器资料" BodyPadding="5px" EnableCollapse="true" BoxConfigAlign="Stretch" Layout="HBox"  ShowHeader="true" ShowBorder="true">
                        <Items>
                            <f:Panel runat="server" ID="Panel1" ShowBorder="false" ShowHeader="false" Width="600px" Layout="Table"  TableConfigColumns="2" >
                                <Items>   
                                    <f:TextBox runat="server" ID="AgentName" Label="经销商" Readonly="true"  Required="true" ShowRedStar="true" Text=""></f:TextBox>
                                    <f:TextBox runat="server" ID="SerialNumber" Label="机号"  Required="true" ShowRedStar="true" Text=""  AutoPostBack="true" ></f:TextBox>
                                    <f:TextBox runat="server" ID="CustomerName" Label="用户"  Required="true" ShowRedStar="true" Text=""></f:TextBox>
                                     <f:TextBox runat="server" ID="CustomerMobile" Label="用户手机" Required="true" ShowRedStar="true" Text=""></f:TextBox>
                                    <f:DatePicker runat="server" ID="IntoDate" Label="交机日"  Required="true" ShowRedStar="true"></f:DatePicker>
                                    <f:TextBox runat="server" ID="IntoAddress" Label="地点"   Required="true" ShowRedStar="true" Text=""></f:TextBox>
                                    <f:DatePicker runat="server" ID="FaultDate" Label="故障日"  Required="true" ShowRedStar="true"></f:DatePicker>
                                    <f:TextBox runat="server" ID="MachineType" Label="机型" Text=""  Required="true" ShowRedStar="true"></f:TextBox>
                                    <f:TextBox runat="server" ID="WorkHour" RegexPattern="NUMBER" Required="true" ShowRedStar="true" Label="工作小时" Text="0"></f:TextBox> 
                                    <f:TextBox runat="server" ID="ReportUser" Label="报告人" Text=""  Required="true" ShowRedStar="true"></f:TextBox>
                                    <f:TextBox runat="server" ID="ReportTel" Label="联系电话" Text=""  Required="true" ShowRedStar="true"></f:TextBox> 
                                    <f:TextBox runat="server" ID="DamagePartsNumber" Label="损坏部品序列号或钢号" Text="" TableColspan="2" ></f:TextBox>                                        
                                </Items>
                            </f:Panel>
                            <f:Panel runat="server" ID="Panel2" ShowBorder="false" ShowHeader="false" Layout="Table" TableConfigColumns="1"  >
                                <Items>
                                    <f:DropDownList ID="MacNature" runat="server" Label="机器性质" Required="true" DataValueField="RoleId" DataTextField="RoleName">
                                        <f:ListItem Value="代理商库存机" Text="代理商库存机" />
                                        <f:ListItem Value="IHISCE样机" Text="IHISCE样机" />
                                        <f:ListItem Value="终端客户机" Text="终端客户机" Selected="true" />
                                    </f:DropDownList>
                                    <f:DropDownList ID="IntoConditi" runat="server" Label="作业内容" Required="true" DataValueField="RoleId" DataTextField="RoleName">
                                        <f:ListItem Value="土方" Text="土方" Selected="true" />
                                        <f:ListItem Value="砂石" Text="砂石" />
                                        <f:ListItem Value="采石" Text="采石" />
                                        <f:ListItem Value="挖砂" Text="挖砂" />
                                        <f:ListItem Value="造园" Text="造园" />
                                        <f:ListItem Value="其他" Text="其他" />
                                    </f:DropDownList>
                                    <f:DropDownList ID="IntoSpecial" runat="server" Label="特别附件及规格" Required="true" DataValueField="RoleId" DataTextField="RoleName">
                                        <f:ListItem Value="破碎管路" Text="破碎管路" />
                                        <f:ListItem Value="破碎专用" Text="破碎专用" />
                                        <f:ListItem Value="加宽铲斗" Text="加宽铲斗" />
                                        <f:ListItem Value="加长臂" Text="加长臂" />
                                        <f:ListItem Value="其他" Text="其他" />
                                        <f:ListItem Value="标准规格" Text="标准规格" Selected="true" />
                                    </f:DropDownList>
                                    
                                </Items>
                            </f:Panel>
                            
                        </Items>
                    </f:Panel>
                    <f:Panel runat="server" ID="pnlGZInfo"   Title="2.故障信息" BodyPadding="5px" EnableCollapse="true"  Layout="HBox" TableConfigColumns="2" ShowHeader="true" ShowBorder="true">
                        <Items>
                          <f:Panel runat="server" ID="Panel3" ShowBorder="false" ShowHeader="false" Width="600px"  >
                                <Items>   
                                    <f:Label runat="server" ID="Label1" Text="故障描述(工况、故障部位、故障现象）："></f:Label>
                                    <f:HtmlEditor runat="server" ID="HEFaultDescription" Height="195px"  Width="515" ></f:HtmlEditor>
                                    <f:Label runat="server" ID="Label2" Text="故障推定原因："></f:Label>
                                    <f:HtmlEditor runat="server" ID="HEFaultReason" Height="195px"  Width="515"></f:HtmlEditor>
                                    <f:Label runat="server" ID="Label3" Text="结论："></f:Label>
                                    <f:HtmlEditor runat="server" ID="HEProcessMode" Height="195px"  Width="515"></f:HtmlEditor>
                                </Items>
                        </f:Panel>
                        <f:Panel runat="server" ID="Panel4" ShowBorder="false" ShowHeader="false" Layout="Table" Height="690px" Width="420px" CssClass="mytable" TableConfigColumns="2"  >
                            <Items>                                
                                <f:Label runat="server" TableColspan="2" Text="照片或绘图说明:"></f:Label>
                                                               
                                <f:Image ID="imgRelatively1" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                <f:Image ID="imgRelatively2" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server"  ImageWidth="200" ImageHeight="150"></f:Image>
                               
                                <f:Panel ShowBorder="false" ShowHeader="false" runat="server" Width="210px"></f:Panel>
                                <f:Panel ShowBorder="false" ShowHeader="false" runat="server" Width="210px"></f:Panel>
                                <f:TextBox runat="server" ID="ImgTitle1"  Text="图1:铭牌" Width="200px"></f:TextBox>
                                <f:TextBox runat="server" ID="ImgTitle2"  Text="图2:工作小时" Width="200px"></f:TextBox>

                                <f:Image ID="imgRelatively3" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                <f:Image ID="imgRelatively4" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                <f:TextBox runat="server" Label="" ID="ImgTitle3"  Text="图3:故障图片" Width="200px"></f:TextBox>
                                <f:TextBox runat="server" Label="" ID="ImgTitle4"  Text="图4:故障图片" Width="200px"></f:TextBox>

                                <f:Image ID="imgRelatively5" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                <f:Image ID="imgRelatively6" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                <f:TextBox runat="server" Label="" ID="ImgTitle5" Text="图5:故障图片" Width="200px"></f:TextBox>
                                <f:TextBox runat="server" Label="" ID="ImgTitle6" Text="图6:整机及工况图片" Width="200px"></f:TextBox>
                                  
                                <f:HyperLink runat="server" ID="fileOtherDownLoad" ShowLabel="false" Target="_block" Text="原文件下载"  ></f:HyperLink>
                            </Items>
                         </f:Panel>
                        </Items>
                    </f:Panel>
                   <f:Panel runat="server" ID="Panel5"   Title="3.部品需求(只有填写配件号的行才会被保存)" BodyPadding="0px" EnableCollapse="true" Layout="Fit" ShowHeader="true" ShowBorder="true">
                         <Items>
                             <f:Grid runat="server" ID="grdAgentQltyParts" ShowHeader="false" ShowBorder="false" OnRowDataBound="grdAgentQltyParts_RowDataBound" >
                                 <Columns>
                                     <f:RowNumberField Width="50px" TextAlign="Center" />
                                     <f:TemplateField HeaderText="配件号" Width="200px" EnableColumnHide="false" EnableHeaderMenu="false" >
                                         <ItemTemplate>
                                             <asp:TextBox runat="server"  ID="tbItemCode" CssClass="ItemCode"  Text='<%# Eval("ItemCode") %>'></asp:TextBox>
                                          </ItemTemplate>
                                     </f:TemplateField>
                                     <f:TemplateField HeaderText="配件名" Width="250px" EnableColumnHide="false" EnableHeaderMenu="false">
                                         <ItemTemplate>
                                               <asp:TextBox runat="server"  ID="tbDscription" CssClass="tbDscription"  Text='<%# Eval("Dscription") %>'></asp:TextBox>
                                         </ItemTemplate>
                                     </f:TemplateField>
                                     <f:TemplateField HeaderText="数量" Width="150px" EnableColumnHide="false" EnableHeaderMenu="false">
                                         <ItemTemplate>
                                              <f:TextBox runat="server" Label="" ID="Quantity"  CssClass="Quantity" Text='<%# Eval("Quantity") %>'></f:TextBox>
                                         </ItemTemplate>
                                     </f:TemplateField>
                                     <f:TemplateField HeaderText="配件需求" Width="150px" EnableColumnHide="false" EnableHeaderMenu="false">
                                         <ItemTemplate>
                                            <%# Eval("PartsDemand") %>
                                         </ItemTemplate>
                                     </f:TemplateField>
                                 </Columns>
                             </f:Grid>
                         </Items>
                    </f:Panel>

                    <f:Panel runat="server" ID="Panel6"   Title="4.IHISCE服务担当处理" BodyPadding="2px" EnableCollapse="true" Layout="Fit" ShowHeader="true" ShowBorder="true">
                        <Items>
                            <f:Panel runat="server" ID="Panel7" ShowBorder="false" ShowHeader="false" Layout="Table" TableConfigColumns="2" >
                                <Items> 
                                    <f:Panel runat="server" ShowBorder="false" ShowHeader="false" TableColspan="2" Layout="Fit">
                                        <Items>
                                             <f:RadioButtonList ID="ReportType" AutoPostBack="false" Label="报告类型" LabelWidth="200px" ColumnNumber="4" runat="server">
                                                <f:RadioItem Text="初报告"  Value="初报告" />
                                                <f:RadioItem Text="续报告(第2次)" Value="续报告(第2次)" />
                                                <f:RadioItem Text="对策后再发" Value="对策后再发" />
                                            </f:RadioButtonList> 
                                        </Items>
                                    </f:Panel> 
                                    <f:CheckBox runat="server" ID="IsVisit" Label="是否需要一周回访" LabelWidth="200px" TableColspan="2" Checked="true"></f:CheckBox>
                                    <f:Label runat="server" ID="Label4" Text="IHISCE服务部对策与结果："></f:Label>
                                    <f:Label runat="server" ID="Label7" Hidden="true" Text="对策方案："></f:Label>   
                                    <f:HtmlEditor runat="server" ID="SvrResult" Height="195px"  Width="400" ></f:HtmlEditor>                                                                   
                                    <f:HtmlEditor runat="server" ID="SvrScheme" Hidden="true" Height="195px"  Width="400"></f:HtmlEditor>
                                    <f:Label runat="server" ID="Label6" Text="配件发送日期及方式：" TableColspan="2"></f:Label>
                                    <f:Panel runat="server" ShowBorder="false" ShowHeader="false" TableColspan="2" Layout="Fit">
                                        <Items>
                                             <f:RadioButtonList ID="PartsSendDate" AutoPostBack="false"  Label="发送日:"  runat="server">
                                                <f:RadioItem Text="当日"  Value="当日" />
                                                <f:RadioItem Text="次日" Value="次日" />
                                                <f:RadioItem Text="三天内" Value="三天内" />
                                                <f:RadioItem Text="其它" Value="其它" />
                                            </f:RadioButtonList>    
                                                 
                                        </Items>
                                    </f:Panel>
                                    <f:Panel runat="server" ShowBorder="false" ShowHeader="false" TableColspan="2" Layout="Fit">
                                        <Items>
                                             <f:RadioButtonList ID="PartsSendType" AutoPostBack="false" Label="发送方式:" ColumnNumber="4" runat="server">
                                                <f:RadioItem Text="航空"  Value="航空" />
                                                <f:RadioItem Text="速递<br/>如申通、EMS、顺丰等）" Value="速递（如申通、EMS、顺丰等）" />
                                                <f:RadioItem Text="普通货运<br/>如华宇、中铁等物流）" Value="普通货运（如华宇、中铁等物流）" />
                                                <f:RadioItem Text="随车" Value="随车" />
                                            </f:RadioButtonList> 
                                        </Items>
                                    </f:Panel>
                                     <f:Panel runat="server" ShowBorder="false" ShowHeader="false" TableColspan="2" Layout="VBox" Width="600px" BoxConfigAlign="Top">
                                        <Items>
                                            <f:TextBox runat="server" ID="ClaimState" Label="当前品情状态" TableColspan="2"></f:TextBox>
                                            <f:CheckBox runat="server" ID="IsCancelReason" Label="是否取消品情" ></f:CheckBox>
                                            <f:TextArea ID="CancelReason" Label="取消原因" runat="server" Height="100px" Width="500px" ></f:TextArea>
                                        </Items>
                                    </f:Panel>
                                </Items>
                            </f:Panel>
                        </Items>
                    </f:Panel>
                </Items>
            </f:Form>
        </Items>
    </f:Panel>
        <f:Window ID="ViewImgWindow" Title="查看图片" Hidden="true" EnableIFrame="true" runat="server"
        EnableMaximize="true" EnableResize="true" Target="Top" IsModal="True" Width="750px"
        Height="500px">
    </f:Window>
    </form>  
    <script src="../res/js/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        F.ready(function () {
            $(".mytable").find("img").each(function () {
                $(this).click(function () {
                    F("ViewImgWindow").f_show($(this).attr("src"), "查看图片");
                });
            })
        });
    </script>
</body>
</html>
